package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-10-02
 * Time: 12:56
 */


@Component
public class BeanScope1 {
    @Autowired
    public User user3;

    public User getUser(){
        User user = user3;
        user.setName("悟空");
        return user;
    }

}
